package androidgame.framework.impl;

import androidgame.framework.Game;
import androidgame.framework.Screen;

// Extends the Screen class to be used with GLSurfaceView. Stores a reference to the instance of GLGraphics
// that will be used throughout the rendering process. Also stores a reference to the main game activity.

// *This class must be implemented for every screen in the game*
// @author dicarlo2

public abstract class GLScreen extends Screen {
	protected final GLGraphics glGraphics;
	protected final GLGame glGame;

	public GLScreen(Game game) {
		super(game);
		glGame = (GLGame) game;
		glGraphics = ((GLGame) game).getGLGraphics();
	}

}